package com.vip.dao.admin.dao;

import com.vip.dao.admin.domain.SysRole;
import org.springframework.data.domain.Example;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SysRoleDao extends JpaRepository<SysRole,Long> {


    SysRole findSysRoleByRoleId(Long id);

    SysRole findSysRoleByRole(String role);

     List<SysRole> findAllByAvailable(Boolean bool);
}
